package models;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;

import play.data.validation.Required;
import play.db.jpa.Model;
@Entity
public class SysField extends Model{
	@Required
	@ManyToOne
	public SysTable table;
	public String name;
	public String type;
	public boolean primaryKey;
	public boolean required;
	public boolean autoIncrement;
	public int typeCode;
	public String size;
	public int scale;
	public String defaultValue;
	@OneToOne
	public SysTable refTable;
		
}
